package demoMod.invincibleOne.patches;

import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePrefixPatch;
import com.evacipated.cardcrawl.modthespire.lib.SpireReturn;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import demoMod.invincibleOne.characters.InvincibleOne;

public class HideCorpsePatch {
    @SpirePatch(clz = AbstractPlayer.class, method = "playDeathAnimation")
    public static class HideCorpse {
        @SpirePrefixPatch
        public static SpireReturn<Void> Prefix(AbstractPlayer _instance) {
            if (AbstractDungeon.player instanceof InvincibleOne) {
                return SpireReturn.Return();
            }
            return SpireReturn.Continue();
        }
    }
}
